<div ng-show="show" class="org" > 

    <div class="row" ng-show="!editMode"> <div class="col-md-3">
            <span ng-click="toggle()" class="glyphicon glyphicon-chevron-down"></span>
            [[org.Name]] 
        </div>
        <div class="col-md-3">
            <p>Website: [[org.Url]]</p> 
        </div><div class="col-md-3">
            <p>Registered User: [[org.UserEmail]]</p> 
        </div>

        <div class="form-group-inline col-md-2">
            <a ng-click="toggle()" class="btn-sm ">View Details</a>
        </div>
    </div>

    <div ng-show="editMode">

        <div class="row" >

            <div class="form-group col-md-3">
                <span ng-click="toggle()" class="glyphicon glyphicon-chevron-up"></span>
                <label for="">Org Name</label>
                <input type="text" ng-model="org.Name" id="" value=""  class="form-control"/>
            </div>
            <div class="form-group col-md-3">
                <label for="">Email</label>
                <input type="text" ng-model="org.Email" id="" value=""  class="form-control"/>
            </div>
            <div class="form-group col-md-3">
                <label for="">Web Site</label>
                <input type="text" ng-model="org.Url" id="" value=""  class="form-control"/>
            </div>
            <div class="form-group col-md-3">
                <label for="">Address</label>
                <input type="text" ng-model="org.Address" id="" value=""  class="form-control"/>
            </div>

        </div>

        <div class="row">
            <div class="form-group col-md-3">
                <label for="">Authorized User</label>
                <select ng-model="user" ng-options="user as user.Name + ' @[' +user.Email + ']' for user in users" ng-change="update()" class="form-control" >

                </select>
            </div>
            <div class="form-group col-md-3">
                <label for="">Profile Password</label>
                <input type="text" ng-model="org.Password" id="" value=""  class="form-control"/>
            </div>


        </div>
        <div class="row">
            <div class="form-group col-md-2">
                <button ng-click="save()" class="btn btn-sm btn-default">Save</button>
            </div>
            <div class="form-group col-md-2">
                <button ng-click="delete()" class="btn btn-sm btn-default">Delete</button>
            </div>
            <div class="form-group col-md-2">
                <button ng-click="toggle()" class="btn btn-sm btn-default">Close</button>
            </div>
            
        </div>

    </div>
</div>
